/**
 * 由 WangYu 创建
 * 日期 2017/11/7
 */
import React, {Component} from 'react';
import {
    StyleSheet,
    Text,
    View,
    Image,
    TouchableOpacity,
} from 'react-native';
import Api from "../../util/Api";
import {Actions} from "react-native-router-flux";
export default class AuthorityManager extends Component {

    constructor(props) {
        super(props);
    }

    static  startNextStep() {
        if (Api.stepArr && Api.stepArr.length > 0) {
            console.log("wangyu", "stepList:" + Api.stepArr.toString());
            //进行下一个授权
            console.log("wangyu", "进行下一个授权:" + Api.stepArr[0]);
            this.startAuthorityPage(Api.stepArr[0]);
            Api.stepArr.shift();//删除第一个元素
        } else {
            // LogUtils.i("wangyu", "stepList为空或者size为0,授权结束");
            // //通知首页再获取一遍开户接口
            // activity.finish();
//            EventBus.getDefault().post(new HomeMessage(HomePresenter.COMPLETE_ENENT));
        }
    }

   static startAuthorityPage(index){
        switch(index){
            case 10:
                Actions.RealNamePage();
                break;
        }
    }
}
